import request, { post } from '@/utils/request';
//智能nav列表
export async function queryFirstClassifyStat(params: any) {
  return post('/aitype/classifyStat/queryFirstClassifyStat', params);
}
//警情分类统计
export async function queryClassifyBarChart(params: any) {
  return post('/aitype/classifyStat/queryClassifyBarChart', params);
}
//指挥中心数据
export async function queryXqdwList(params: any) {
  return post('/aitype/classifyStat/queryXqdwList', params);
}
//警情趋势预警
export async function queryVaryTrend(params: any) {
  return post('/aitype/classifyStat/queryVaryTrend', params);
}
export async function queryXqdwClassifyTop3(params: any) {
  return post('/aitype/classifyStat/queryXqdwClassifyTop3', params);
}
//辖区警情统计
export async function queryXqdwPieChart(params: any) {
  return post('/aitype/classifyStat/queryXqdwPieChart', params);
}
//传统柱状图
export async function queryStackChart(params: any) {
  return post('/aitype/dealStat/queryStackChart', params);
}
export async function queryStackChartel(params: any) {
  return post('/aitype/callStat/queryStackChart', params);
}
//传统nav列表
export async function queryFirstStat(params: any) {
  return post('/aitype/dealStat/queryFirstStat', params);
}
export async function queryFirstStatel(params: any) {
  return post('/aitype/callStat/queryFirstStat', params);
}
//传统警情趋势预警
export async function deaqueryVaryTrend(params: any) {
  return post('/aitype/dealStat/queryVaryTrend', params);
}
export async function deaqueryVaryTrendel(params: any) {
  return post('/aitype/callStat/queryVaryTrend', params);
}
//传统警情统计
export async function deaqueryXqdwPieChart(params: any) {
  return post('/aitype/dealStat/queryXqdwPieChart', params);
}
export async function deaqueryXqdwPieChartel(params: any) {
  return post('/aitype/callStat/queryXqdwPieChart', params);
}
export async function queryXqdwDealTop3(params: any) {
  return post('/aitype/dealStat/queryXqdwDealTop3', params);
}
//列表
export async function queryCaseInfo(params: any) {
  return post('/aitype/caseInfo/queryCaseInfo', params);
}
//选择分类
export async function getClassifyTree(params: any) {
  return post('/console/caseRevert/getClassifyTree', params);
}
export async function getParamList(params: any) {
  return post('/common/bsparam/getParamList', params);
}
export async function queryFolder(params: any) {
  return post('/personal/caseFavorite/queryFolder', params);
}
export async function addFolder(params: any) {
  return post('/personal/caseFavorite/addFolder', params);
}
export async function queryCallSummaryTop3Xqdw(params: any) {
  return post('/aitype/callStat/queryCallSummaryTop3Xqdw ', params);
}
export async function queryCallDateTop3Xqdw(params: any) {
  return post('/aitype/callStat/queryCallDateTop3Xqdw', params);
}
export async function exportExcel(params: any) {
  // return post('/aitype/caseInfo/exportExcel',params);
  return request({
    url: '/aitype/caseInfo/exportExcel',
    method: 'post',
    params,
    responseType: 'arraybuffer',
  });
}
//乱点导出报告
export async function exportExcelLD(params: any) {
  return request({
    url: '/security/detail/exportExcel',
    method: 'post',
    params,
    responseType: 'arraybuffer',
  });
}
//要素赋能导出报告
export async function exportExcelFN(params: any) {
  return request({
    url: '/series/detail/exportExcel',
    method: 'post',
    params,
    responseType: 'arraybuffer',
  });
}

//要素赋能导出报告(续串)
export async function exportExcelFN2(params: any) {
  return request({
    url: '/series/history/exportExcel',
    method: 'post',
    params,
    responseType: 'arraybuffer',
  });
}
//二级导航栏
export async function labelTree(params: any) {
  return post('/console/label/labelTree', params);
}
export async function queryTime(params: any) {
  return post('/server/queryTime', params);
}
export async function updateSampleStatus(params: any) {
  return post('/aitype/caseInfo/updateSampleStatus', params);
}
//接警top3
export async function queryXqdwCallTop3(params: any) {
  return post('/aitype/callStat/queryXqdwCallTop3', params);
}

//辖区报告导出
export async function getExportXqWord(params: any) {
  return post('report/exportXqWord', params);
}
//获取下级top3
export async function getQueryLowerAy(params: any) {
  return post('/report/queryLowerAy', params);
}
//获取code对应警情
export async function getQueryStat(params: any) {
  return post('/aitype/callStat/queryStat', params);
}

//获取code对应警情
export async function getQueryAll(params: any) {
  return post('/report/queryAll', params);
}

export const postJsonDownload = (url, data) => {
  return request({
    method: 'post',
    url,
    data,
  });
};
